/* 
 * Gneat (http://gneat.org)
 *
 * (C) Copyright 2011 and beyond - Claudio Stella, all rights reserved.
 *
 * This file is part of Gneat.
 *
 * Gneat is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (LGPL)
 * as published by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gneat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * and the GNU General Public License, for completeness, along with Gneat.  
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.neatshell.gneat.client.view.live.core;

public class LiveViewImplIE extends LiveViewImpl {
//  @Override
//	public native String getComputedDisplay(com.google.gwt.dom.client.Element el) /*-{
//		alert(el.currentStyle.display);
//		return 'block';
//	}-*/;    

//	public String getComputedStyle(Element el, String prop){
//		if (prop.equals("display")) {
////			createGetComputedDisplayFuntion();
//			return getComputedDisplay(el);
//		}
//		return null;
//	}
	
	
//    public native void createGetComputedDisplayFuntion()/*-{
//    	$wnd.getCompDisplay = function (el) {
//			return document.defaultView.getComputedStyle(el, null).display;
//    	};
//    }-*/;
    
    @Override
	public native String getComputedDisplay(com.google.gwt.dom.client.Element el) /*-{
      return $wnd.getCompDisplay(el);
    }-*/;
    
	//return el.currentStyle.display;
}
